package com.hai.video;

import android.media.MediaPlayer;
import android.view.Surface;
import android.view.SurfaceHolder;

public interface IMediaApi {
    void setOnCompletionListener(MediaPlayer.OnCompletionListener listener);

    void setOnErrorListener(MediaPlayer.OnErrorListener listener);

    void setOnInfoListener(MediaPlayer.OnInfoListener listener);

    void setOnPreparedListener(MediaPlayer.OnPreparedListener listener);

    void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener listener);

    void setOnVideoSizeChangedListener(MediaPlayer.OnVideoSizeChangedListener listener);

    void setDataSource(String path);

    void seekTo(long position);

    void prepare();

    void start();

    void pause();

    void stop();

    void reset();

    void release();

    boolean isPlaying();

    boolean isPaused();

    int getVideoWidth();

    int getVideoHeight();

    long getProgress();

    long getDuration();

    void setDisplay(SurfaceHolder holder);

    void setSurface(Surface surface);

    Object getMedia();
}
